package algo.Common;

import java.util.Vector;
import java.util.Set;


public class Course {

	/**
	 * @param args
	 */
	String 	_id;
	String 	_name;
	int 	_nbSlots;
	Instructor	_instructor;
	Vector<ClassTT> _classes;
	
	public Course(String id, String name, Instructor instructor, int nbSlots, Vector<ClassTT> classes){
		_id = id;
		_name = name;
		_nbSlots = nbSlots;
		_classes = classes;
		_instructor = instructor;
		//System.out.println("Constructor Course --> OK");
	}
	
	public String getID(){ return _id;}
	public String getName(){ return _name;}
	public Instructor getInstructor(){ return _instructor;}
	public int getNbrSlots(){ return _nbSlots;}
	public Vector<ClassTT> getClasses(){ return _classes;}
	
	public void print(){
		System.out.print("Course id = " + getID() + " name = " + getName() + " nbrSlots = " + getNbrSlots() + " ");
		System.out.print(" Instructor = "); getInstructor().print();
		System.out.print("Classes = ");
		for(int i = 0; i < _classes.size(); i++){
			ClassTT cls = _classes.elementAt(i);
			//cls.print();
			System.out.println(cls.getID() + ", ");
		}
		System.out.println("----------");
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
